class Participation < ActiveRecord::Base
  cattr_reader :per_page
  @@per_page = 20
  
  belongs_to :event
  belongs_to :user
  
  def self.recent_join
    find(:all, :conditions => "events.ref='dizhen.1kg.org'",
               :order => "participations.created_at desc", 
               :limit => 10,
               :include => [:user, :event])
  end
end
